package org.xhystudy.rpc.tolerant;

import java.util.HashMap;
import java.util.Map;

/**
 * @description: 集群容错工厂
 * @Author: Xhy
 * @gitee: https://gitee.com/XhyQAQ
 * @copyright: B站: https://space.bilibili.com/152686439
 * @CreateTime: 2023-05-03 21:14
 */
public class FaultTolerantFactory {

    private static Map<FaultTolerantType,FaultTolerantStrategy> faultTolerantStrategyMap = new HashMap<>();
    static {

    }

    public static FaultTolerantStrategy get(FaultTolerantType faultTolerantType){
        return faultTolerantStrategyMap.get(faultTolerantType);
    }
}
